package com.example.dell.fastshopping.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by ${YSH} on 2019/5/16.
 * 描述        ${TODO}
 * <p>
 * 更新者       $author$
 * 更新时间     $Data$
 * 描述         ${TODO}
 */
public class DateUtils {
    //时间戳转日期
    public static String stampToDate(long s){
        String res;
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

        Date date = new Date(s);
        res = simpleDateFormat.format(date);
        return res;
    }
}
